# server.py
from mcp.server.fastmcp import FastMCP
#Create an MCp server
mcp = FastMCP("Demo")
# Add an addition to01
@mcp.tool()
def add(a:int,b:int)->int:
    """Add two numbers"""
    return a+b
# Add a dynamic greeting resource
@mcp.resource("greeting://iname}")

def get_greeting(name:str)->str:
    return f"Hello,{name}!"